package com.wangdao.wechatmall.service.admin;

import com.wangdao.wechatmall.bean.pojo.GoodsProductExample;
import com.wangdao.wechatmall.mapper.GoodsProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ZhangXiao on 2021/7/8
 */
@Service
public class GoodsProductServiceImpl implements GoodsProductService {

    @Autowired
    GoodsProductMapper goodsproductMapper;

    @Override
    public long getProductNumber() {
        GoodsProductExample productExample = new GoodsProductExample();
        long productTotal = goodsproductMapper.countByExample(productExample);
        return productTotal;
    }
}
